package com.itheima.edu.info.manager.day17;

public class Test {
    public static void main(String[] args) {
        //返回此枚举如果重写了toString方法就是返回此枚举的内容
        System.out.println(a.a);
        System.out.println(a.b);
        System.out.println(a.c);
        System.out.println(a.d);
        System.out.println(a.e);
        System.out.println(a.f);
        System.out.println(a.g);
        System.out.println("---------");
        a.a.show();
        a.b.show();
        a.c.show();
        a.d.show();
        a.e.show();
        a.f.show();
        a.g.show();
        System.out.println("---------");
        //返回此对象的名字本身
        System.out.println(a.a.name());
        System.out.println(a.b.name());
        System.out.println(a.c.name());
        System.out.println(a.d.name());
        System.out.println(a.e.name());
        System.out.println(a.f.name());
        System.out.println(a.g.name());
        System.out.println("---------");
        //索引
        System.out.println(a.a.ordinal());
        System.out.println(a.b.ordinal());
        System.out.println(a.c.ordinal());
        System.out.println(a.d.ordinal());
        System.out.println(a.e.ordinal());
        System.out.println(a.f.ordinal());
        System.out.println(a.g.ordinal());



    }
}
